<!-- HTML header for doxygen 1.9.4-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>yyjson: yyjson_alc Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
<link href="yyjson-style.css" rel="stylesheet" type="text/css"/>
<!-- css awesome -->
 <script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script>
 <script type="text/javascript">
     DoxygenAwesomeDarkModeToggle.init()
 </script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname"><a href="index.html">yyjson</a><span id="projectnumber">&#160;0.10.0</span>
   </div>
   <div id="projectbrief">A high performance C JSON library.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('structyyjson__alc.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle"><div class="title">yyjson_alc Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;yyjson.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a83133b6b92e0fec52ec3c62538f44311"><td class="memItemLeft" align="right" valign="top">void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structyyjson__alc.html#a83133b6b92e0fec52ec3c62538f44311">malloc</a> )(void *<a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a>, size_t size)</td></tr>
<tr class="separator:a83133b6b92e0fec52ec3c62538f44311"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affacb85df656149df6c07880f0ecbe95"><td class="memItemLeft" align="right" valign="top">void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structyyjson__alc.html#affacb85df656149df6c07880f0ecbe95">realloc</a> )(void *<a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a>, void *ptr, size_t old_size, size_t size)</td></tr>
<tr class="separator:affacb85df656149df6c07880f0ecbe95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c770ff93f0f331bd60076eecd93661e"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structyyjson__alc.html#a2c770ff93f0f331bd60076eecd93661e">free</a> )(void *<a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a>, void *ptr)</td></tr>
<tr class="separator:a2c770ff93f0f331bd60076eecd93661e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9499246c39efd68c206280de1b31f45"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a></td></tr>
<tr class="separator:ae9499246c39efd68c206280de1b31f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >A memory allocator.</p>
<p >Typically you don't need to use it, unless you want to customize your own memory allocator. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="ae9499246c39efd68c206280de1b31f45" name="ae9499246c39efd68c206280de1b31f45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9499246c39efd68c206280de1b31f45">&#9670;&nbsp;</a></span>ctx</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* yyjson_alc::ctx</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >A context for malloc/realloc/free, can be NULL. </p>

</div>
</div>
<a id="a2c770ff93f0f331bd60076eecd93661e" name="a2c770ff93f0f331bd60076eecd93661e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c770ff93f0f331bd60076eecd93661e">&#9670;&nbsp;</a></span>free</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* yyjson_alc::free) (void *<a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a>, void *ptr)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Same as libc's free(ptr), should not be NULL. </p>

</div>
</div>
<a id="a83133b6b92e0fec52ec3c62538f44311" name="a83133b6b92e0fec52ec3c62538f44311"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83133b6b92e0fec52ec3c62538f44311">&#9670;&nbsp;</a></span>malloc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void *(* yyjson_alc::malloc) (void *<a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a>, size_t size)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Same as libc's malloc(size), should not be NULL. </p>

</div>
</div>
<a id="affacb85df656149df6c07880f0ecbe95" name="affacb85df656149df6c07880f0ecbe95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affacb85df656149df6c07880f0ecbe95">&#9670;&nbsp;</a></span>realloc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void *(* yyjson_alc::realloc) (void *<a class="el" href="structyyjson__alc.html#ae9499246c39efd68c206280de1b31f45">ctx</a>, void *ptr, size_t old_size, size_t size)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Same as libc's realloc(ptr, size), should not be NULL. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="yyjson_8h.html">yyjson.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.4-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structyyjson__alc.html">yyjson_alc</a></li>
    <li class="footer">Documentation for <a href="https://github.com/ibireme/yyjson" target="_blank">yyjson</a>, generated by <a href="https://www.doxygen.org/index.html" target="_blank">doxygen</a> 1.9.4 </li>
  </ul>
</div>
</body>
</html>
